package com.wangshouyu.mp.pay.v3.common.constant;

import com.wangshouyu.mp.pay.common.constant.UrlConstant;

/**
 * @author 王守钰
 * @description v3地址请求常量
 * @date 2020/8/14 9:55
 */
public interface UrlV3Constant extends UrlConstant {

    /**
     * app下单请求地址
     */
    String APP_TRANSACTIONS_URL = BASE_URL + "/v3/pay/transactions/app";

    /**
     * jsapi下单请求地址
     */
    String JS_API_TRANSACTIONS_URL = BASE_URL + "/v3/pay/transactions/jsapi";

    /**
     * native下单请求地址
     */
    String NATIVE_TRANSACTIONS_URL = BASE_URL + "/v3/pay/transactions/native";

    /**
     * h5下单请求地址
     */
    String H5_TRANSACTIONS_URL = BASE_URL + "/v3/pay/transactions/h5";

    /**
     * 信支付订单号查询
     */
    String TRANSACTIONS_BY_ID_URL = BASE_URL + "/v3/pay/transactions/id/{0}?mchid={1}";

    /**
     * 商户订单号查询
     */
    String TRANSACTIONS_BY_OUT_TRADE_NO_URL = BASE_URL + "/v3/pay/transactions/out-trade-no/{0}?mchid={1}";

    /**
     * 关闭订单
     */
    String CLOSE_TRANSACTIONS_URL = BASE_URL + "/v3/pay/transactions/out-trade-no/{0}/close";

    /**
     * 退款申请
     */
    String REFUND_URL = BASE_URL + "/v3/refund/domestic/refunds";
}
